App({
  onLaunch: function () {
    //获取缓存中的登录信息
    var that=this;
    wx.getStorage({
      key: 'userInfo',
      success: function (res) {
        var userInfo=res.data;
        var date = new Date(userInfo.expiringDate);
        if (date-1>new Date()){
          that.globalData.userInfo = res.data;
        }
      },
    })
  },
  globalData: {
    userInfo: null,
    appId:'wxaf1485734b53945d',
    host: 'https://www.inoth.site/api',
    // host: 'http://localhost:6433/api',
  },
})